<% form_for:product,:url=>{:action=>"product_update",:id=>@product.id} do |f| %>
  <p>
    <b>名称</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>价格</b><br />
    <%= f.text_field :price %>
  </p>

  <p>
    <b>描述</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>图片地址</b><br />
    <%= f.text_field :img_url %>
  </p>

  <p>
    <b>数量</b><br />
    <%= f.text_field :amount %>
  </p>

  <p>
    <%= f.submit "更新" %>
  </p>
<% end %>
<%= link_to '返回', {:action=>"product_list"} %>